POV-Ray : Newsgroups : povray.unofficial.patches : Glows: color vs. size ? : Glows: color vs. size ? Server Time
1 Sep 2024 16:16:55 EDT (-0400)
  Glows: color vs. size ?  
From: Rune
Date: 17 Feb 2001 16:06:15
Message: <3a8ee7c7@news.povray.org>
The MegaPov glow feature has a size keyword which controls the size of the
glows as a scaling factor.

However, the apparent size of glows can also be controlled by adjusting the
color.

The code below shows that there's very little difference between multiplying
the size with a factor and dividing the color with the same factor. Try to
change the value M to values from 0.1 to 2.

#version unofficial MegaPov 0.7;
#declare M = 1;
glow {type 0 location -x color 0.1*M size 1}
glow {type 0 location +x color 0.1   size 1*M}
camera {location -4*z look_at 0}
box {x,x}

The code below shows that the same thing but in a different way. Here you
can change the M value from anything from 0.000001 to 1000000 and still the
difference is rather small.

#version unofficial MegaPov 0.7;
#declare M = 0.1;
glow {type 0 location -x color 0.1   size 1  }
glow {type 0 location +x color 0.1*M size 1/M}
camera {location -4*z look_at 0}
box {x,x}

So, what exactly is the point of the size keyword? How can it be used to
achieve results that can not be achieved with the color alone?

Rune
--
\ Include files, tutorials, 3D images, raytracing jokes,
/ The POV Desktop Theme, and The POV-Ray Logo Contest can
\ all be found at http://rsj.mobilixnet.dk (updated January 28)
/ Also visit http://www.povrayusers.org


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.